public class Class{
    public static void main(String[] args) {
            class Point{
                int x;
                int y;
                int z;
                public int getResult(){
                    double result = x*x+y*y+z*z;
                    double result2= Math.sqrt(result);
                    System.out.println((int) result2);
                    return 0;
                }

                public int getX() {
                    return x;
                }

                public void setX(int x) {
                    this.x = x;
                }

                public int getY() {
                    return y;
                }

                public void setY(int y) {
                    this.y = y;
                }

                public int getZ() {
                    return z;
                }

                public void setZ(int z) {
                    this.z = z;
                }
            }
            Point p = new Point();
            p.setX(10);
            p.setY(10);
            p.setZ(10);
            p.getResult();
        }
    }

